Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Replace deprecated set-output with GITHUB_OUTPUT #2384

Merged
merged 1 commit into from
Oct 22, 2022
Merged

🐛 Replace deprecated set-output with GITHUB_OUTPUT #2384

merged 1 commit into from
Oct 22, 2022

Conversation

gabibguti
Copy link
Contributor

What kind of change does this PR introduce?

Replace deprecated set-output with GITHUB_OUTPUT on workflows.

What is the current behavior?

Use set-output to set outputs in workflows.

What is the new behavior (if this is a feature change)?**

Use GITHUB_OUTPUT to set outputs in workflows.

  • Tests for the changes have been added (for bug fixes/features)

Which issue(s) this PR fixes

Fixes #2376

Special notes for your reviewer

I was not able to run E2E tests with make e2e-pat.

Does this PR introduce a user-facing change?

For user-facing changes, please add a concise, human-readable release note to
the release-note

(In particular, describe what changes users might need to make in their
application as a result of this pull request.)

NONE

Copy link
Member

@naveensrinivasan naveensrinivasan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! We need to test this before merging. Could you please post a link to the workflow on your fork?

@github-actions
Copy link

Integration tests success for
[2cf10e4]
(https://github.com/ossf/scorecard/actions/runs/3299999595)

@codecov
Copy link

codecov bot commented Oct 21, 2022

Codecov Report

Merging #2384 (fb51f44) into main (fa6cceb) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2384   +/-   ##
=======================================
  Coverage   40.61%   40.61%           
=======================================
  Files         112      112           
  Lines        8831     8831           
=======================================
  Hits         3587     3587           
  Misses       4984     4984           
  Partials      260      260           

@gabibguti
Copy link
Contributor Author

@spencerschrock
Copy link
Member

Action links

They both say This workflow has no runs yet.

https://github.com/gabibguti/scorecard/actions/workflows/goreleaser.yaml

You can trigger the goreleaser workflow by pushing a tag to your fork

https://github.com/gabibguti/scorecard/actions/workflows/slsa-goreleaser.yml

You can trigger the slsa-goreleaser manually by following this

@gabibguti
Copy link
Contributor Author

Should I modify anything in these workflows to test? Like changing upload-assets: true to false in goreleaser?
https://github.com/gabibguti/scorecard/blob/main/.github/workflows/goreleaser.yaml#L85

@spencerschrock
Copy link
Member

Should I modify anything in these workflows to test? Like changing upload-assets: true to false in goreleaser? https://github.com/gabibguti/scorecard/blob/main/.github/workflows/goreleaser.yaml#L85

As far as I know, that just determines if a release gets updated to your fork which is fine https://github.com/gabibguti/scorecard/releases

I see the SLSA releaser failed, but the output value seems to have worked https://github.com/gabibguti/scorecard/actions/runs/3300430916/jobs/5444920630#step:1:29

Copy link
Member

@naveensrinivasan naveensrinivasan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @gabibguti!

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
@naveensrinivasan naveensrinivasan enabled auto-merge (squash) October 22, 2022 15:22
@naveensrinivasan naveensrinivasan temporarily deployed to integration-test October 22, 2022 15:22 Inactive
@github-actions
Copy link

Integration tests success for
[fb51f44]
(https://github.com/ossf/scorecard/actions/runs/3303750695)

@naveensrinivasan naveensrinivasan merged commit d5fa5d1 into ossf:main Oct 22, 2022
@gabibguti
Copy link
Contributor Author

Just for reference, I tested the goreleaser workflow and everything seems fine. Goreleaser failed 'cause I did not set a GPG key secret in my fork, but the version_ldflags output was set fine in the previous step. I tested echo-ing the version_ldflags output in a separate workflow.

latortuga71 pushed a commit to latortuga71/scorecard that referenced this pull request Oct 27, 2022
Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
Signed-off-by: latortuga <latortugaaaa>
N8BWert pushed a commit to N8BWert/scorecard that referenced this pull request Nov 28, 2022
Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
Signed-off-by: nathaniel.wert <nathaniel.wert@kudelskisecurity.com>
N8BWert pushed a commit to N8BWert/scorecard that referenced this pull request Nov 28, 2022
Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
Signed-off-by: nathaniel.wert <nathaniel.wert@kudelskisecurity.com>
raghavkaul pushed a commit to raghavkaul/scorecard that referenced this pull request Feb 9, 2023
Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update workflows to avoid save-state and set-output
3 participants